package com.spring.lesson.generic;

import org.springframework.beans.factory.annotation.Autowired;

import javax.annotation.Resource;

public abstract class BaseService<T> {
    // 在泛型类中注入了一个泛型对象
    @Autowired
    protected BaseRepository<T> repository;
}
